package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.FriendBoxDao;
import cate.game.friend.po.FriendBox;
import cate.game.server.configuration.dao.MgIdHexDao;

public class MgFriendBoxDao extends MgIdHexDao<FriendBox> implements FriendBoxDao {

    @Override
    protected Class<FriendBox> getEntityClass() {
        return FriendBox.class;
    }

    @Override
    protected void writeIdHex(FriendBox entity, String idHex) {
        entity.uid = idHex;
    }

    @Override
    protected String readIdHex(FriendBox entity) {
        return entity.uid;
    }

}
